#ifndef __CAR_IN_PARK_PROC_H
#define __CAR_IN_PARK_PROC_H

#include <vector>

#include "yolo.h"
#include <opencv2/dnn.hpp>
#include "opencv2/opencv.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"

int carInParkProcess(cv::Mat &srcImg, std::vector<YoloBox> &boxes, YoloBox &carBox);
int findCross(cv::Mat &srcImg, std::vector<YoloBox> &boxes, cv::Rect &retRect);

int findCrossXiefei(cv::Mat &srcImg, std::vector<YoloBox> &boxes, YoloBox &retBox);

int isXiefeiHasCar(cv::Mat &midImg, std::vector<YoloBox> &boxes, float arpha1, float arpha2, YoloBox &findbox);
int isUpImgHasCar(cv::Mat &upImg, std::vector<YoloBox> &boxes, YoloBox &carbox, YoloBox &upCarbox);

#endif
